projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac54a29
)
Fix calculation from garmin semi values.
author
oliskoli
<oliskoli>
Sat, 17 Jun 2006 21:41:38 +0000
(21:41 +0000)
committer
oliskoli
<oliskoli>
Sat, 17 Jun 2006 21:41:38 +0000
(21:41 +0000)
jeeps/gpsmath.c
patch
|
blob
|
history
diff --git
a/jeeps/gpsmath.c
b/jeeps/gpsmath.c
index 799147904e4978f1b595a59c3f7a59264108f901..a5459bdd1d3db756edef568136fd686432780414 100644
(file)
--- a/
jeeps/gpsmath.c
+++ b/
jeeps/gpsmath.c
@@
-251,7
+251,7
@@
double GPS_Math_Feet_To_Metres(double v)
int32 GPS_Math_Deg_To_Semi(double v)
{
- return (
(1U<<31) /
180) * v;
+ return (
(double)(1U<<31) / (double)
180) * v;
}
@@
-267,7
+267,7
@@
int32 GPS_Math_Deg_To_Semi(double v)
double GPS_Math_Semi_To_Deg(int32 v)
{
- return (double) (((double)v
/
(double)(1U<<31)) * (double)180);
+ return (double) (((double)v
/
(double)(1U<<31)) * (double)180);
}